package com.woniuxy.dao;

import com.woniuxy.pojo.Order;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author 罗蔚
 * @Date 2022/3/28 1:39
 * @Description TODO
 */
public interface OrderDao {
    void insertNewOrder(Order order);

    int findOrderIdByOrderno(String orderno);

    public Order findNoAndMoneyAndPaltypeByOrderId(@Param("id")int id, @Param("userid")int userid);

    List<Order> findAll(int uid);

    List<Order> findFiveByDate(int uid);

    Order findOrderDetail(@Param("id")int id, @Param("userid")int userid);

    void deleteOrder(String orderno);
}
